package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);


    int createBed(Bed bed);

    BedVo getBedById(Long id);

    int updateBed(Bed bed);

    int deleteBed(Long id);

    void updateBedNum(Bed bed);

    void updateBedNumMin(Long id);

    Long countDiffBedNumber(String bedNumber, Long id);

    BedDto getBedStaueById(Long id);
}

